<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('manage/advertisingaccountList')}">广告账户列表</a></li>
			<!-- <li><a href="{:url('fbfans/add')}">添加粉丝页管理列表</a></li> -->
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('advertisingaccount/domainList')}">
            查询户名:
            <input type="text" class="form-control" name="account_num" style="width: 180px;" value="{:input('request.account_num/s','')}" placeholder="户名">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('manage/advertisingaccountList')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>代理</th>
					<th>账户</th>
					<th>状态</th>
					<th>挂户时间</th>
					<th width="130">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="advertisingaccounts" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.name }</td>
					<td>{$vo.account_num }</td>
					<td>
						<?php if($vo['status'] == 1){echo '<span style="color:green"> 正常 </span>';}else{echo '<span style="color:red"> 挂了 </span>';}?>
					</td>
					<td>{$vo.down_time|date="Y年m月d日",###}</td>
					<td>
						<a href='{:url("manage/advertisingaccountChangeStatus",array('id'=>$vo['id'],'status'=>$vo['status']))}' class="js-ajax-edit">更改状态</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
